package com.org.redis.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtils {

    private static final String Y_M_D_H_M_S = "yyyy-MM-dd HH:mm:ss";
    private static final String Y_M_D = "yyyy-MM-dd";

    public static String getSimpleDateFormatToYMD(){
        SimpleDateFormat sdf = new SimpleDateFormat(Y_M_D_H_M_S);//设置日期格式
        return sdf.format(new Date());
    }
}
